package edu.sctu.wangxiaoqiang.day20150524.texttwo;

/**
 * Created by user25 on 2015/5/24.
 */
public abstract class Book {

    public int bookpage;
    public float discount;
    public double price;

    abstract void show();                                 //无参抽象方法
    abstract double getPrice(int bookpage,float discount);//有参抽象反方法
    public Book(int bookpage,float discount){
        this.bookpage = bookpage;
        this.discount = discount;
    }                                                     //有参构造函数

    public  void show_price(){
        System.out.println("this book's price is "+price);

    }
}
